package adv5.exec;

import java.io.*;

public class Args {

	public static void main(String[] args) {
		System.out.println("命令行参数：");
		for (int i = 0; i < args.length; i++) {
			System.out.println((i + 1) + ":" + args[i]);
		}
		File from = new File(args[0]);
		File to = new File(args[1], from.getName());
		boolean cut = from.renameTo(to);
		System.out.println(cut);
	}
}
